<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.listorder {width:60px;text-align:center;}
</style>
</block>

<block name="main">
	<nav class="breadcrumb">
		<i class="Hui-iconfont"></i>
		 首页 <span class="c-gray en">&gt;</span> 
		 日志管理
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
	</nav>
	
	<div class="pd-20">
		<php>
			$result = _get_list_data('/Userslog/log/index/',$_GET,$map,D('UsersLog'),'','id desc');
		</php>
		<form class="mini-form">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="60">ID</th>
					<th width="100">用户</th>
					<th width="80">行为</th>
					<th>info</th>
					<th width="120">ip</th>
					<th width="120">时间</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="result['data']['list']" item="vo">
				<tr class="text-c">
					<td><input type="checkbox" value="{$vo['id']}" name="ids[]"></td>
					<td>{$vo['id']}</td>
					<td>{$vo.user.username}</td>
					<td>{$vo.action}</td>
					<td style="text-align:left">{$vo.info}</td>
					<td>{$vo.ip}</td>
					<td>{$vo.create_time}</td>
					
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		{$result['pagetpl']}
	</div>
	
	
</block>

<block name="script">
<script>
$(".listorder").blur(function(){
	var id = $(this).attr("data-id");
	var listorder = $(this).val();
	var data = {
		id:id,
		listorder:listorder,
		type:'term'
	};
	$.post("/Ygcl/Apiadmin/changelistorder",data,function(data){
		if(data.status){
			location.reload();
		}
	})
})
</script>
</block>